package com.ysdz.tibetan.tibetanmini.user.service.impl;

import com.ysdz.tibetan.tibetanmini.user.beans.UserRole;
import com.ysdz.tibetan.tibetanmini.user.dao.UserRoleMapper;
import com.ysdz.tibetan.tibetanmini.user.service.UserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl implements UserRoleService {

    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public Integer save(UserRole userRole){
        return userRoleMapper.insertUseGeneratedKeys(userRole);
    }

}
